<h1>Composities group</h1>
<h3>  
  <%= form_tag(composites_index_path) do %>
  <%= label_tag("group_path:") %>
  <%= text_field_tag(:group_path,@composites_group.path, size: 70, :readonly => Rails.env.production?) %>
  <%= label_tag("mask:") %>
  <%= text_field_tag(:group_mask,@composites_group.path_mask, size: 20) %>
  <%= submit_tag("Search") %>
<!--   <%= submit_tag("Update") if !Rails.env.production? %> -->
  <% end %>
</h3>
<table>
  <tr>
    <th>Ind</th>
    <th>Name</th>
    <th>Version</th>
    <th>Info</th>
    <th>Path</th>
  </tr>
<% @composites.each_with_index do |composite, ind| %>
  <tr>
    <td><%= ind+1 %></td>
    <td><%= link_to composite.name , composite_path(ind)%></td>
    <td><%= composite.version %></td>
    <td><%= composite.info %></td>
    <td><%= composite.path %></td>
  </tr>
<% end %>
</table>
 
<br />
 
